//
//  MSResponse.h
//  MSJD
//
//  Created by xiangbo on 2018/9/12.
//  Copyright © 2018 xiangbo. All rights reserved.
//

#import "MappedModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface MSBaseModel : NSObject<YYModel>

@property (nonatomic,copy)NSNumber * mId;
@property (nonatomic,copy)NSNumber * kind; // 1美食 2酒店
@property (nonatomic,assign)CGPoint localOffset;//本地数据存储offset用

@end

@protocol MSBannersModel <NSObject>
@end

@interface MSBannersModel : MSBaseModel

@property (nonatomic,copy)NSString *title;
@property (nonatomic,copy)NSString *img;

@end

@protocol MSTagsModel <NSObject>
@end

@interface MSTagsModel : MSBaseModel

@property (nonatomic,copy)NSString *tagName;
@property (nonatomic,copy)NSString *icon;

@end

@protocol MSKindsModel <NSObject>
@end

@interface MSKindsModel : MSBaseModel

@property (nonatomic,copy)NSString *title;
@property (nonatomic,copy)NSString *img;
@property (nonatomic, strong)NSArray <MSTagsModel> *tags;

@end

@interface MSResponseData : NSObject

@property (nonatomic, strong)NSArray <MSBannersModel> *banners;
@property (nonatomic, strong)NSArray <MSKindsModel> *kinds;

@end

@interface MSResponse : MappedModel

@property (nonatomic, strong)MSResponseData *data;

@end

@protocol MSFoodContentModel <NSObject>

@end

@interface MSFoodContentModel : MSBaseModel

@property (nonatomic,copy)NSNumber *jumpKind;
@property (nonatomic,copy)NSNumber *showOrder;
@property (nonatomic,copy)NSString *title;
@property (nonatomic,copy)NSString *subTitle;
@property (nonatomic,copy)NSString *cover;
@property (nonatomic,copy)NSNumber *score;
@property (nonatomic,copy)NSString *location;
@property (nonatomic,copy)NSNumber *lon;
@property (nonatomic,copy)NSNumber *lat;


@end

@protocol MSFoodData <NSObject>

@end
@interface MSFoodData : MSBaseModel

@property (nonatomic,copy)NSString *title;
@property (nonatomic,copy)NSString *subTitle;
@property (nonatomic,copy)NSString *showType;
@property (nonatomic,strong)NSNumber *showOrder;
@property (nonatomic,assign)BOOL more;
@property (nonatomic,copy)NSString *url;
@property (nonatomic,strong)NSArray <MSFoodContentModel> *contents;

@end


@interface MSFoodResponse : MappedModel

@property (nonatomic, strong)NSArray <MSFoodData> *data;

@end


@protocol MSListFiltersItems <NSObject>

@end
@interface MSListFiltersItems : MSBaseModel

@property (nonatomic, strong)NSString *name;

@end

@protocol MSListFiltersModel <NSObject>
@end

@interface MSListFiltersModel : NSObject

@property (nonatomic, copy)NSNumber * fid;
@property (nonatomic, strong)NSString *filterName;
@property (nonatomic, strong)NSArray <MSListFiltersItems> *items;

@end

@protocol MSListSortsModel <NSObject>
@end

@interface MSListSortsModel : NSObject

@property (nonatomic, strong)NSString *name;
@property (nonatomic, strong)NSString *key;

@end
@interface MSListData : NSObject

@property (nonatomic, strong)NSArray <MSListFiltersModel> *filters;
@property (nonatomic, strong)NSArray <MSListSortsModel> *sorts;

@end


@interface MSListResponse : MappedModel

@property (nonatomic, strong)MSListData *data;

@end

@protocol MSFoodSearchRows <NSObject>
@end

@interface MSFoodSearchRows : MSBaseModel

@property (nonatomic , copy) NSString *itemName;
@property (nonatomic , copy) NSString *cover;
@property (nonatomic , copy) NSNumber *lat;
@property (nonatomic , copy) NSString *location;

@end

@interface MSFoodSearchData : NSObject

@property (nonatomic , copy) NSNumber *page;
@property (nonatomic , copy) NSNumber *pageSize;
@property (nonatomic , copy) NSNumber *total;
@property (nonatomic , copy) NSNumber *totalPage;
@property (nonatomic , strong) NSArray <MSFoodSearchRows> *rows;

@end

@interface MSFoodSearchResponse : MappedModel

@property (nonatomic, strong)MSFoodSearchData *data;

@end

@protocol MSFoodDetailPhotosModel <NSObject>
@end

@interface MSFoodDetailPhotosModel : NSObject

@property (nonatomic, copy)NSString *cate;// 照⽚片分类
@property (nonatomic, copy)NSNumber *count;// 照⽚片数

@end

@interface MSFoodDetailCommentModel : NSObject

@property (nonatomic, copy)NSNumber *score;// 总平均分
@property (nonatomic, copy)NSNumber *location;// 位置分
@property (nonatomic, copy)NSNumber *facility;// 设施分
@property (nonatomic, copy)NSNumber *service;// 服务分
@property (nonatomic, copy)NSNumber *hygiene;// 卫⽣生分

@end

@protocol MSFoodDetailData <NSObject>
@end

@interface MSFoodDetailData : MSBaseModel

@property (nonatomic, copy)NSString *itemName;// 主体名称
@property (nonatomic, copy)NSString *img;// 主体封⾯面
@property (nonatomic, copy)NSNumber *score;// 评分
@property (nonatomic, copy)NSString *location;// 主体地址
@property (nonatomic, copy)NSNumber *lon;// 主体经度
@property (nonatomic, copy)NSNumber *lat;// 主体纬度
@property (nonatomic, copy)NSString *intro;//商家简介
@property (nonatomic, copy)NSNumber *favor;//商家简介
@property (nonatomic, copy)NSString *openTime;// 营业时间
@property (nonatomic, copy)NSNumber *price;// ⼈人均价格
@property (nonatomic, copy)NSNumber *shareCount;// 分享数
@property (nonatomic, copy)NSNumber *commentCount;// 评论数
@property (nonatomic, copy)NSNumber *photoCount;// 照⽚片数
@property (nonatomic, copy)NSNumber *favCount; // 收藏数
@property (nonatomic, copy)NSString *phone;
@property (nonatomic, strong)NSArray *photos;
@property (nonatomic, strong)NSArray *covers;
@property (nonatomic, strong)MSFoodDetailCommentModel *commentSummary;

@property (nonatomic, assign)CGFloat height;//本地数据
@property (nonatomic, assign)BOOL localExpand;//本地数据 是否已展开

@end

@interface MSFoodDetailResponse : MappedModel

@property (nonatomic, strong)MSFoodDetailData *data;

@end

@interface MSCommentUserMoedel : MSBaseModel

@property (nonatomic,copy)NSString *uuid;
@property (nonatomic,copy)NSString *gender;
@property (nonatomic,copy)NSString *phone;
@property (nonatomic,copy)NSString *avatar;
@property (nonatomic,copy)NSString *username;
@property (nonatomic,copy)NSString *password;
@property (nonatomic,copy)NSString *token;

@end

@protocol MSCommentPictures <NSObject>
@end

@interface MSCommentPictures : MSBaseModel

@property (nonatomic,copy)NSString *url;

@end

@protocol MSCommentlistRowsModel <NSObject>
@end

@interface MSCommentlistRowsModel : MSBaseModel

@property (nonatomic, copy)NSNumber *itemId;
@property (nonatomic, copy)NSString *score;
@property (nonatomic, copy)NSString *location;
@property (nonatomic, copy)NSNumber *facility;
@property (nonatomic, copy)NSString *service;
@property (nonatomic, copy)NSString *hygiene;
@property (nonatomic, copy)NSString *content;
@property (nonatomic, copy)NSString *createdAt;
@property (nonatomic, strong)MSCommentUserMoedel *user;
@property (nonatomic, strong)NSArray<MSCommentPictures> *pictures;


@property (nonatomic, assign)CGFloat height;//非服务数据 本地存储

@end

@interface MSCommentlistData : NSObject

@property (nonatomic, copy)NSNumber *page;
@property (nonatomic, copy)NSNumber *pageSize;
@property (nonatomic, copy)NSNumber *total;
@property (nonatomic, copy)NSNumber *totalPage;
@property (nonatomic, strong)NSArray <MSCommentlistRowsModel> *rows;

@end

@interface MSCommentlistResponse : MappedModel

@property (nonatomic, strong)MSCommentlistData *data;
@end

@protocol MSFoodMoreData <NSObject>
@end

@interface MSFoodMoreData : MSBaseModel

@property (nonatomic, copy)NSNumber *page;
@property (nonatomic, copy)NSNumber *pageSize;
@property (nonatomic, copy)NSNumber *total;
@property (nonatomic, copy)NSNumber *totalPage;
@property (nonatomic, strong)NSArray <MSFoodContentModel> *rows;

@end

@interface MSFoodMoreResponse : MappedModel

@property (nonatomic, strong) MSFoodMoreData *data;

@end

@interface MSFoodNearbyData : MSBaseModel

@property (nonatomic, copy)NSNumber *page;
@property (nonatomic, copy)NSNumber *pageSize;
@property (nonatomic, copy)NSNumber *total;
@property (nonatomic, copy)NSNumber *totalPage;
@property (nonatomic, strong)NSArray <MSFoodDetailData> *rows;

@end

@interface MSFoodNearbyResponse : MappedModel

@property (nonatomic, strong) MSFoodNearbyData *data;

@end




NS_ASSUME_NONNULL_END
